package cn.jervain.nut.auth.starter.demo;

import cn.jervain.nut.auth.core.encoder.PasswordEncoder;
import cn.jervain.nut.auth.core.encoder.RawPasswordEncoder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * Hello world!
 *
 */
@SpringBootApplication
public class DemoStarterApp {

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new RawPasswordEncoder();
    }

    public static void main( String[] args ) {
        SpringApplication.run(DemoStarterApp.class, args);
    }

}
